package com.example.database.tables

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters

/**
 * 数据库实体类
 * */
@Entity(tableName = "video_table")
@TypeConverters(CustomTypeConverter::class)
data class VideoEntity(
    @PrimaryKey
    val id: Int,
    @ColumnInfo("action_url")
    val actionUrl: String,
    @ColumnInfo("ad_track")
    val adTrack: String,
    @ColumnInfo("bg_picture")
    val bgPicture: String,
    @ColumnInfo("child_tag_id_list")
    val childTagIdList: ArrayList<String>,
    @ColumnInfo("child_tag_list")
    val childTagList: ArrayList<String>,
    @ColumnInfo("community_index")
    val communityIndex: Int,
    @ColumnInfo("desc")
    val desc: String,
    @ColumnInfo("have_reward")
    val haveReward: Boolean,
    @ColumnInfo("header_image")
    val headerImage: String,
    @ColumnInfo("if_newest")
    val ifNewest: Boolean,
    @ColumnInfo("name")
    val name: String,
    @ColumnInfo("newest_end_time")
    val newestEndTime: String,
    @ColumnInfo("tag_rec_type")
    val tagRecType: String
)